// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/vite/dist/node/index.js";
import AutoImport from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/unplugin-vue-components/dist/resolvers.js";
import vue from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import vueDevTools from "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
var __vite_injected_original_import_meta_url = "file:///D:/MYCODES/Web/Gits/git.gitee.com-uilllo-vue_ts_study_demo/vue_ts_study_demo/vite.config.ts";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    vueJsx(),
    vueDevTools(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  css: {
    preprocessorOptions: {
      scss: {
        // 使用vite加载scss文件
        additionalData: `
        @use "@/styles/element/index.scss" as *; 
        `,
        api: "modern-compiler"
      }
    }
  },
  build: {
    target: "es2017",
    minify: "terser",
    // 是否进行压缩,boolean | 'terser' | 'esbuild',默认使用terser
    manifest: false,
    // 是否产出manifest.json
    sourcemap: false,
    // 是否产出sourcemap.json
    outDir: "dist"
    // 产出目录
  },
  server: {
    // 如果使用docker-compose开发模式，设置为false
    open: true,
    port: Number(process.env.VITE_CLI_PORT),
    proxy: {
      // 把key的路径代理到target位置
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      // :${process.env.VITE_SERVER_PORT}
      [process.env.VITE_BASE_API]: {
        // 需要代理的路径   例如 '/api'
        // target: `http://10.10.10.181:8866`, // 代理到 目标路径
        target: `${process.env.VITE_BASE_PATH}`,
        changeOrigin: true,
        rewrite: (path) => path.replace(new RegExp("^" + process.env.VITE_BASE_API), "")
      },
      "/sse": {
        // 需要代理的路径   例如 '/api'
        // target: `http://10.10.7.222:8866`, // 代理到 目标路径
        target: `${process.env.VITE_BASE_PATH}`,
        changeOrigin: true,
        rewrite: (path) => path.replace(new RegExp("^/sse"), "")
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxNWUNPREVTXFxcXFdlYlxcXFxHaXRzXFxcXGdpdC5naXRlZS5jb20tdWlsbGxvLXZ1ZV90c19zdHVkeV9kZW1vXFxcXHZ1ZV90c19zdHVkeV9kZW1vXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxNWUNPREVTXFxcXFdlYlxcXFxHaXRzXFxcXGdpdC5naXRlZS5jb20tdWlsbGxvLXZ1ZV90c19zdHVkeV9kZW1vXFxcXHZ1ZV90c19zdHVkeV9kZW1vXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2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